const mongoose = require("mongoose");
const Schema =  mongoose.Schema;

const blog = new Schema({
    title:{
        type:String,
        required:true
    },
    htmlContent:{
        type:String,
        required:true
    },
    blogType:{
        type:String,
        required:true
    },
    thums:{
       type:String
    },
    descrition:{
        type:String,
        required:true
    },
    clickSum :{
        type:Number,
        default:0
    },
    toch:{
        type:[Object],
    }
},{
    timestamps:{
       
    }
});

module.exports = mongoose.model("blog",blog);